package com.seckill.job.service;

import com.seckill.common.core.domain.R;
import com.seckill.job.domain.TbSeckill;
import com.seckill.job.domain.TbStock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "seckill-miaosha")
public interface Feign_secKill {

    @PostMapping("/tb-seckill/updateStatusStart")
    public boolean updateStatusStart(TbSeckill seckill);

    @PostMapping("/tb-seckill/updateStatusEnd")
    public boolean updateStatusEnd(TbSeckill seckill);

    @GetMapping("getNotOn")
    public List<TbSeckill> getNotOn();

    @GetMapping("/tb-stock/findbyskuid")
    public TbStock findbyskuid(@RequestParam("skuId")Long skuId);
}
